<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/resource/common/taglib.jspf"%>
<%@include file="/resource/common/jquery.jspf"%>
<%@include file="/resource/common/commonCss.jspf"%>
<%@include file="/resource/common/bootstrap.jspf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${SESSION_COMPANY}-WebWeather</title>
<script type="text/javascript" src="${ctxStatic }/js/system/layerParentFn.js"></script>
<script type="text/javascript">
	var PATH = "${ctx }";
	function addLayerOpen(id,titles,edit){
		if(edit){
			titles = id >0?"编辑："+titles:"新增：";
			layerParentFn.layerOpenModalDialog(titles,"addWebWeather.do?id="+id,1065,530,"inputForm","saveWebWeatherJson.do");
		}else{
			titles = "浏览:"+titles;
			layerParentFn.layerOpenBrowseModalDialog(titles,"addWebWeather.do?id="+id,1065,530);
		}
	}
</script>

</head>
<body>
	<div id="body-wrapper">
		<div id="main-content">
			<div class="clear"></div>
			<div class="content-box-content">
				<div class="search-box">
					<shiro:hasPermission name="webWeather:SYS_ADD">
						<a href="javascript:void(0)" onclick="addLayerOpen(0,'',true);" class="btn btn-sm btn-primary" ><i class="fa fa-plus"></i>&nbsp;&nbsp;新增</a>
					</shiro:hasPermission>
					<hr style="margin-top: 10px; margin-bottom: 10px;">
					<shiro:hasPermission name="webWeather:SYS_SEARCH">
						<form action="webWeatherList.do" method="post" id="fromsearch" class="form-inline">
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">location</div>
									<input type="text" class="form-control" value="${entity.location}" name="location" id="location" placeholder="location" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">地区／城市ID</div>
									<input type="text" class="form-control" value="${entity.cid}" name="cid" id="cid" placeholder="地区／城市ID" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">地区／城市经度</div>
									<input type="text" class="form-control" value="${entity.lon}" name="lon" id="lon" placeholder="地区／城市经度" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">地区／城市经度</div>
									<input type="text" class="form-control" value="${entity.lat}" name="lat" id="lat" placeholder="地区／城市经度" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">该地区／城市的上级城市</div>
									<input type="text" class="form-control" value="${entity.parentCity}" name="parentCity" id="parentCity" placeholder="该地区／城市的上级城市" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">该地区／城市所属行政区域</div>
									<input type="text" class="form-control" value="${entity.adminAre}A" name="adminArea" id="adminArea" placeholder="该地区／城市所属行政区域" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">该地区／城市所属国家名称</div>
									<input type="text" class="form-control" value="${entity.cnty}" name="cnty" id="cnty" placeholder="该地区／城市所属国家名称" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">该地区／城市所在时区</div>
									<input type="text" class="form-control" value="${entity.tz}" name="tz" id="tz" placeholder="该地区／城市所在时区" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">当地时间，24小时制，格式yyyy-MM-dd HH:mm</div>
									<input type="text" class="form-control" value="${entity.loc}" name="loc" id="loc" placeholder="当地时间，24小时制，格式yyyy-MM-dd HH:mm" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">UTC时间，24小时制，格式yyyy-MM-dd HH:mm</div>
									<input type="text" class="form-control" value="${entity.utc}" name="utc" id="utc" placeholder="UTC时间，24小时制，格式yyyy-MM-dd HH:mm" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">预报日期</div>
									<input type="text" class="form-control" value="${entity.date}" name="date" id="date" placeholder="预报日期" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">日出时间</div>
									<input type="text" class="form-control" value="${entity.sr}" name="sr" id="sr" placeholder="日出时间" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">日落时间</div>
									<input type="text" class="form-control" value="${entity.ss}" name="ss" id="ss" placeholder="日落时间" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">月升时间</div>
									<input type="text" class="form-control" value="${entity.mr}" name="mr" id="mr" placeholder="月升时间" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">月落时间</div>
									<input type="text" class="form-control" value="${entity.ms}" name="ms" id="ms" placeholder="月落时间" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">最高温度</div>
									<input type="text" class="form-control" value="${entity.tmpMax}" name="tmpMax" id="tmpMax" placeholder="最高温度" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">最低温度</div>
									<input type="text" class="form-control" value="${entity.tmpMin}" name="tmpMin" id="tmpMin" placeholder="最低温度" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">白天天气状况代码</div>
									<input type="text" class="form-control" value="${entity.condCodeD}" name="condCodeD" id="condCodeD" placeholder="白天天气状况代码" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">晚间天气状况代码</div>
									<input type="text" class="form-control" value="${entity.condCodeN}" name="condCodeN" id="condCodeN" placeholder="晚间天气状况代码" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">白天天气状况描述</div>
									<input type="text" class="form-control" value="${entity.condTxtD}" name="condTxtD" id="condTxtD" placeholder="白天天气状况描述" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">晚间天气状况描述</div>
									<input type="text" class="form-control" value="${entity.condTxtN}" name="condTxtN" id="condTxtN" placeholder="晚间天气状况描述" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">风向360角度</div>
									<input type="text" class="form-control" value="${entity.windDeg}" name="windDeg" id="windDeg" placeholder="风向360角度" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">风向</div>
									<input type="text" class="form-control" value="${entity.windDir}" name="windDir" id="windDir" placeholder="风向" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">风力</div>
									<input type="text" class="form-control" value="${entity.windSc}" name="windSc" id="windSc" placeholder="风力" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">风速，公里/小时</div>
									<input type="text" class="form-control" value="${entity.windSpd}" name="windSpd" id="windSpd" placeholder="风速，公里/小时" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">相对湿度</div>
									<input type="text" class="form-control" value="${entity.hum}" name="hum" id="hum" placeholder="相对湿度" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">降水量</div>
									<input type="text" class="form-control" value="${entity.pcpn}" name="pcpn" id="pcpn" placeholder="降水量" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">降水概率</div>
									<input type="text" class="form-control" value="${entity.pop}" name="pop" id="pop" placeholder="降水概率" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">大气压强</div>
									<input type="text" class="form-control" value="${entity.pres}" name="pres" id="pres" placeholder="大气压强" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">能见度，单位：公里</div>
									<input type="text" class="form-control" value="${entity.vis}" name="vis" id="vis" placeholder="能见度，单位：公里" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">紫外线强度指数</div>
									<input type="text" class="form-control" value="${entity.uvIndex}" name="uvIndex" id="uvIndex" placeholder="紫外线强度指数" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">是否启用</div>
									<input type="text" class="form-control" value="${entity.status}" name="status" id="status" placeholder="是否启用" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">创建时间</div>
									<input type="text" class="form-control" value="${entity.createTime}" name="createTime" id="createTime" placeholder="创建时间" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">更新时间</div>
									<input type="text" class="form-control" value="${entity.updateTime}" name="updateTime" id="updateTime" placeholder="更新时间" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">创建者ID</div>
									<input type="text" class="form-control" value="${entity.createId}" name="createId" id="createId" placeholder="创建者ID" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">修改者ID</div>
									<input type="text" class="form-control" value="${entity.updateId}" name="updateId" id="updateId" placeholder="修改者ID" />
								</div>
							</div>
							<button type="submit"  class="btn btn-sm btn-primary"> <i class="fa fa-search"></i>查询 </button>
						</form>
					</shiro:hasPermission>
				</div>
				<div class="tab-content default-tab" id="tab1">
					<table class="table table-bordered table-hover">
						<thead>
							<tr>
								<th class="w40 text-center">编号</th> 
								<th class="w90 text-center">location</th> 
								<th class="w90 text-center">地区／城市ID</th> 
								<th class="w90 text-center">地区／城市经度</th> 
								<th class="w90 text-center">地区／城市经度</th> 
								<th class="w90 text-center">该地区／城市的上级城市</th> 
								<th class="w90 text-center">该地区／城市所属行政区域</th> 
								<th class="w90 text-center">该地区／城市所属国家名称</th> 
								<th class="w90 text-center">该地区／城市所在时区</th> 
								<th class="w90 text-center">当地时间，24小时制，格式yyyy-MM-dd HH:mm</th> 
								<th class="w90 text-center">UTC时间，24小时制，格式yyyy-MM-dd HH:mm</th> 
								<th class="w90 text-center">预报日期</th> 
								<th class="w90 text-center">日出时间</th> 
								<th class="w90 text-center">日落时间</th> 
								<th class="w90 text-center">月升时间</th> 
								<th class="w90 text-center">月落时间</th> 
								<th class="w90 text-center">最高温度</th> 
								<th class="w90 text-center">最低温度</th> 
								<th class="w90 text-center">白天天气状况代码</th> 
								<th class="w90 text-center">晚间天气状况代码</th> 
								<th class="w90 text-center">白天天气状况描述</th> 
								<th class="w90 text-center">晚间天气状况描述</th> 
								<th class="w90 text-center">风向360角度</th> 
								<th class="w90 text-center">风向</th> 
								<th class="w90 text-center">风力</th> 
								<th class="w90 text-center">风速，公里/小时</th> 
								<th class="w90 text-center">相对湿度</th> 
								<th class="w90 text-center">降水量</th> 
								<th class="w90 text-center">降水概率</th> 
								<th class="w90 text-center">大气压强</th> 
								<th class="w90 text-center">能见度，单位：公里</th> 
								<th class="w90 text-center">紫外线强度指数</th> 
								<th class="w90 text-center">是否启用</th> 
								<th class="w90 text-center">创建时间</th> 
								<th class="w90 text-center">更新时间</th> 
								<th class="w90 text-center">创建者ID</th> 
								<th class="w90 text-center">修改者ID</th> 
								<th class="w210 text-center">操作</th>
							</tr>
						</thead>
						<tbody>
							#foreach($entity in $pageBean.list)
							<tr id="tr_${entity.id }">
								<td class="text-center">${startRow+abc.count}</td>

								<td>${entity.location}</td>

								<td>${entity.cid}</td>

								<td>${entity.lon}</td>

								<td>${entity.lat}</td>

								<td>${entity.parentCity}</td>

								<td>${entity.adminAre}A</td>

								<td>${entity.cnty}</td>

								<td>${entity.tz}</td>

								<td>${entity.loc}</td>

								<td>${entity.utc}</td>

								<td>${entity.date}</td>

								<td>${entity.sr}</td>

								<td>${entity.ss}</td>

								<td>${entity.mr}</td>

								<td>${entity.ms}</td>

								<td>${entity.tmpMax}</td>

								<td>${entity.tmpMin}</td>

								<td>${entity.condCodeD}</td>

								<td>${entity.condCodeN}</td>

								<td>${entity.condTxtD}</td>

								<td>${entity.condTxtN}</td>

								<td>${entity.windDeg}</td>

								<td>${entity.windDir}</td>

								<td>${entity.windSc}</td>

								<td>${entity.windSpd}</td>

								<td>${entity.hum}</td>

								<td>${entity.pcpn}</td>

								<td>${entity.pop}</td>

								<td>${entity.pres}</td>

								<td>${entity.vis}</td>

								<td>${entity.uvIndex}</td>

								<td>${entity.status}</td>

								<td>${entity.createTime}</td>

								<td>${entity.updateTime}</td>

								<td>${entity.createId}</td>

								<td>${entity.updateId}</td>
								<td class="text-center">
									<shiro:hasPermission name="webWeather:SYS_BROWSE">
										<a href="javascript:void(0);" onclick="addLayerOpen(${entity.id},'${entity.className}',false);" title="浏览" class="btn btn-xs btn-info"><i class="fa fa-eye"></i>&nbsp;浏览</a>
									</shiro:hasPermission>
									<shiro:hasPermission name="webWeather:SYS_EDIT">
										<a href="javascript:void(0);" onclick="addLayerOpen(${entity.id},'',true);" class="btn btn-xs btn-primary"><i class="fa fa-edit"></i>&nbsp;编辑</a>
									</shiro:hasPermission> 
									<shiro:hasPermission name="webWeather:SYS_DELETE">
										<c:choose>
											<c:when test="${entity.status==1 }">
												<a href="javascript:void(0);" onclick="layerParentFn.listRemoveRowDeleteByIDIsDeleted(${entity.id },${entity.isDeleted },'updateStatusWebWeather.do');" class="btn btn-xs btn-danger"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
											</c:when>
											<c:otherwise>
												<a href="javascript:void(0);" onclick="layerParentFn.listRemoveRowDeleteByIDIsDeleted(${entity.id },${entity.isDeleted },'updateStatusWebWeather.do');" class="btn btn-xs btn-info"><i class="fa fa-edit"></i>&nbsp;恢复</a>
											</c:otherwise>
										</c:choose>
									</shiro:hasPermission>
								</td>
							</tr>
							#end
						</tbody>
						<tfoot>
							<tr>
								<td colspan="10">
									<div class="bulk-actions align-right"></div>
									<div class="paginationstyle">
										<page:pageboot url="webWeatherList.do?location=${entity.location}&cid=${entity.cid}&lon=${entity.lon}&lat=${entity.lat}&parentCity=${entity.parentCity}&adminArea=${entity.adminAre}A&cnty=${entity.cnty}&tz=${entity.tz}&loc=${entity.loc}&utc=${entity.utc}&date=${entity.date}&sr=${entity.sr}&ss=${entity.ss}&mr=${entity.mr}&ms=${entity.ms}&tmpMax=${entity.tmpMax}&tmpMin=${entity.tmpMin}&condCodeD=${entity.condCodeD}&condCodeN=${entity.condCodeN}&condTxtD=${entity.condTxtD}&condTxtN=${entity.condTxtN}&windDeg=${entity.windDeg}&windDir=${entity.windDir}&windSc=${entity.windSc}&windSpd=${entity.windSpd}&hum=${entity.hum}&pcpn=${entity.pcpn}&pop=${entity.pop}&pres=${entity.pres}&vis=${entity.vis}&uvIndex=${entity.uvIndex}&status=${entity.status}&createTime=${entity.createTime}&updateTime=${entity.updateTime}&createId=${entity.createId}&updateId=${entity.updateId}&" tagnum="2" pageBean="${pageBean}" />
									</div>
									<div class="clear"></div>
								</td>
							</tr>
						</tfoot>
					</table>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
